<ul class="sidemenu">				
{section name=id loop=$pages}
	<li><a href="{if $pages[id].attributes.redirect eq 0}{$smarty.const.HTTP_URL}{$pages[id].attributes.url}.html{else}{$pages[id].attributes.to_url}{/if}">{$pages[id].value}</a></li>
{/section}
</ul>
